package cn.itcast.mapper;

import cn.itcast.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingMapper {

    //若日期不存在，则插入数据
    public void add(OrderSetting orderSetting);
    //若日期存在则更新数据
    public void editNumberByOrderDate(OrderSetting orderSetting);
    //查询excle中的日期数据库中是否存在
    public long findCountByOrderDate(Date orderDate);
    //查询当前月设置的预约信息
    List<Map> getOrderSettingByMonth(Map map);
    //根据orderDate获取OrderSetting
    OrderSetting findByOrderDate(Date date);
    //根据日期修改Reservations
    void editReservationsByOrderDate(OrderSetting orderSetting);
}
